package com.study.webTest.controller;

import org.springframework.web.bind.annotation.*;

/**
 * @author
 * @date 2022年11月06日 20:33
 * @description
 */
@RestController()
@RequestMapping("/filter")
public class TestFilter {


    @GetMapping("/filter1")
    public String filter1(String username) {
        return username+"空格";
    }


    @PostMapping("/filter2")
    public String filter2(String username) {
        return username+"空格";
    }


    @PostMapping("/filter3")
    public String filter3(@RequestBody String username) {
        return username+"空格";
    }



    @PostMapping("/filter4")
    public String filter4(@RequestBody String username, String password) {
        return username+"空格"+password+"kong";
    }
}
